Calculating the Image Aspect Ratio